package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface IEmployeeService {

    void delete(Long id);

    void save(Employee employee, Long[] ids);

    Employee get(Long id);

    List<Employee> listALL();

    void update(Employee employee, Long[] ids);


    PageInfo<Employee> query(QueryObject qo);


    //Employee login(String username, String password);


    void updateAll(String oldPassword, String newPassword);


    void insert1(Employee employee);

    void batchDelete( Long[] ids);

    Workbook exportXLs();

    void importXLs(MultipartFile file) throws IOException;

    Employee selectByName(String name,Long id);

    Employee selectAndName(String name);

    void updateOne(Employee employee);

    List<Employee> selectBySeller(String... sns);

}
